package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/statement")
public class WmsStatementRouter {
    @Autowired
    SysMenuService menuService;
    //入库明细报表页面
    @RequestMapping(value = "/statement/{menu}")
    public  String  tostatement(@PathVariable("menu") String menu, Model model){
        System.out.println("menu::::"+menu);
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "journaling/wmsStatement/statement";
    }

}
